//go:build jsoniter
// +build jsoniter

package json

import (
	jsoniter "github.com/json-iterator/go"
)

var json = jsoniter.Config{
	EscapeHTML:                    true,
	SortMapKeys:                   true,
	MarshalFloatWith6Digits:       true,
	ObjectFieldMustBeSimpleString: true,
	UseNumber:                     true,
}.Froze()

// jsoniter 库
var (
	Marshal       = json.Marshal
	Unmarshal     = json.Unmarshal
	MarshalIndent = json.MarshalIndent
	NewDecoder    = json.NewDecoder
	NewEncoder    = json.NewEncoder
)
